package com.jwthhealth_pub.old.signutil.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by liuzhen000 on 2016/12/1.
 */

@DatabaseTable(tableName = "jwth_userinfo")
public class UserInfoModel {

    /**
     * id : 10000000023
     * username : mm14777777777
     * email :
     * phone : 14777777777
     * truename :
     * idcard :
     * age : 28
     * birthday :
     * address :
     * city :
     * province :
     * company :
     * education :
     * sex : 女
     * height :
     * weight :
     * role : 10
     * iostoken :
     * androidtoken : gevnvd1480589456
     * status : 10
     * groupname : 普通用户
     */

    @DatabaseField
    private String id;
    @DatabaseField
    private String username;
    @DatabaseField
    private String email;
    @DatabaseField
    private String phone;
    // TODO: 2017/2/6 已经放弃
    @DatabaseField
    private String truename;
    // TODO: 2017/2/6 已经放弃
    @DatabaseField
    private String idcard;
    @DatabaseField
    private String age;
    @DatabaseField
    private String birthday;
    @DatabaseField
    private String address;
    @DatabaseField
    private String city;
    @DatabaseField
    private String province;
    // TODO: 2017/2/6 已经放弃
    @DatabaseField
    private String company;
    // TODO: 2017/2/6 已经放弃
    @DatabaseField
    private String education;
    @DatabaseField
    private String sex;
    @DatabaseField
    private String height;
    @DatabaseField
    private String weight;
    // TODO: 2017/2/6 已经放弃
    @DatabaseField
    private String role;
    @DatabaseField
    private String iostoken;
    @DatabaseField
    private String androidtoken;
    @DatabaseField
    private String status;
    @DatabaseField
    private String groupname;

    private String targetStep;

    public void setId(String id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setTruename(String truename) {
        this.truename = truename;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public void setIostoken(String iostoken) {
        this.iostoken = iostoken;
    }

    public void setAndroidtoken(String androidtoken) {
        this.androidtoken = androidtoken;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public String getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public String getEmail() {
        return email;
    }

    public String getPhone() {
        return phone;
    }

    public String getTruename() {
        return truename;
    }

    public String getIdcard() {
        return idcard;
    }

    public String getAge() {
        return age;
    }

    public String getBirthday() {
        return birthday;
    }

    public String getAddress() {
        return address;
    }

    public String getCity() {
        return city;
    }

    public String getProvince() {
        return province;
    }

    public String getCompany() {
        return company;
    }

    public String getEducation() {
        return education;
    }

    public String getSex() {
        return sex;
    }

    public String getHeight() {
        return height;
    }

    public String getWeight() {
        return weight;
    }

    public String getRole() {
        return role;
    }

    public String getIostoken() {
        return iostoken;
    }

    public String getAndroidtoken() {
        return androidtoken;
    }

    public String getStatus() {
        return status;
    }

    public String getGroupname() {
        return groupname;
    }

    public String getTargetStep() {
        return targetStep;
    }

    public void setTargetStep(String targetStep) {
        this.targetStep = targetStep;
    }

    public boolean isNecessityInfoComplete() {
        return getHeight() != null && getWeight() != null && getAge() != null && getSex() != null;
    }
}
